package com.ymanage.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.ymanage.dao.SupplierMapper;
import com.ymanage.entity.Supplier;

/**
 * 
 * <p>Title:SupplierService </p>
 * <p>Description:供应商业务层 </p>
 * <p>Project:yumi </p>
 * @author alen
 * @Version 1.0
 * @date 2017年8月28日 下午5:00:19
 */
public class SupplierService {
	
	@Autowired
	private SupplierMapper supplierMapper;

	public void add(Supplier supplier){
		
		supplierMapper.add(supplier);
	}
	
	public void update(Supplier supplier){
		
		supplierMapper.update(supplier);
	}
	
	public void del(Supplier supplier){
		
		supplierMapper.del(supplier);
	}
	
	public List<Supplier> list(){
		
		return supplierMapper.list();
	}
	
}
